package com.yanqu.road.entity.grandchild;

import com.yanqu.road.entity.DataObject;

/**
 * 孙子科举官职
 */
public class GrandChildOfficial extends DataObject {
    private long userId;            //玩家编号
    private int officialId;         //官职编号
    private long grandChildCount;   //该职业孙子数量

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if(this.userId != userId) {
            this.userId = userId;
            setUpdateOption();
        }
    }

    public int getOfficialId() {
        return officialId;
    }

    public void setOfficialId(int officialId) {
        if(this.officialId != officialId) {
            this.officialId = officialId;
            setUpdateOption();
        }
    }

    public long getGrandChildCount() {
        return grandChildCount;
    }

    public void setGrandChildCount(long grandChildCount) {
        if(this.grandChildCount != grandChildCount) {
            this.grandChildCount = grandChildCount;
            setUpdateOption();
        }
    }
}
